PFLAGS += -DCC2420_DEF_CHANNEL=26
PFLAGS += -DCC2420_DEF_RFPOWER=30
#PFLAGS += -DENABLE_SPI0_DMA

CFLAGS += -I$(TOSDIR)/lib/printf
PFLAGS += -DPRINTF_BUFFER_SIZE=3400

COMPONENT=RssiToSerialC
BUILD_EXTRA_DEPS = RssiSerialMsg.java SpecAnalyzer.class
CLEAN_EXTRA = *.class RssiSerialMsg.java

RssiSerialMsg.java: RssiToSerial.h
	mig java -target=$(PLATFORM) $(CFLAGS) -java-classname=RssiSerialMsg RssiToSerial.h rssi_serial_msg -o $@

SpecAnalyzer.class: $(wildcard *.java) SpecAnalyzer.java
	javac *.java

include $(MAKERULES)

